package com.zhiche.lisa.lspm.dao.mapper.driver;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zhiche.lisa.lspm.dao.model.driver.DriverCheckinStatus;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 司机报班状态 Mapper 接口
 * </p>
 *
 * @author qichao
 * @since 2018-06-08
 */
public interface DriverCheckinStatusMapper extends BaseMapper<DriverCheckinStatus> {

    /**
     * 根据报班id获取
     * @return
     */
    DriverCheckinStatus selectByCheckinId(@Param("checkinId") Long checkinId);

    /**
     * 更新司机报班状态
     * @param checkinId
     * @param status
     */
    void updateStatusByCheckinId(@Param("checkinId") Long checkinId,@Param("status") String status);


    /**
     * 过滤租户根据报班id获取
     *
     * @return
     */
    DriverCheckinStatus selectByCheckinIdNotenant(@Param("checkinId") Long checkinId);
}
